package testrunner.logic;

import testrunner.core.TestRunner;

public class DecisionParser implements DecisionValidable_Interface{

	@Override
	public boolean verify(String decision) throws InterruptedException {
		boolean type = false;
		switch(decision){
		case "y":
			type = true;
			break;
		case "n":
			type = false;
			break;
		default:
			TestRunner testRunner = new TestRunner();
			testRunner.run();
		}
		return type;
	}

}
